$(document).ready(function() {
	loadData();
});

function loadData() {
	// 加载preview中的正文内容；同时加载右侧的标注信息
	var articleId = $('#aid').val();
	var userId = $('#users').val();
	if(!userId || userId == 'null'){
		userId = 0;
	}
	$.get('/articles/' + articleId + '/'+userId+'/showwithtag', function(data) {
		$('.preview').html(data);
	});
}
